package com.web.itemService.mappers;

import entity.Goods;
import entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface useMapper {
    void registerUser(User user);

    User findUserByNameAndPassword(@Param("username") String userName, @Param("password") String password);

    User findUserByNameAndPhone(@Param("username") String userName, @Param("phone") String phone);

    User findUserByOpenid(@Param("openid") String openid);

    User findUserById(@Param("id") int id);

    Goods findGoodsById(@Param("id") int id);

}
